package com.aipp.mall.h5.mapper;

import com.aipp.mall.h5.domain.entity.MemberAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 会员账户表Mapper接口
 *
 * @author zcc
 */
public interface MemberAccountMapper extends BaseMapper<MemberAccount> {

    int updateIntegralBalance(@Param("amount") BigDecimal amount, @Param("memberId") Long memberId);

    int updateIntegral(@Param("useIntegral") BigDecimal useIntegral, @Param("memberId") Long memberId);
}
